<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Consultar por Documento de Identidad</title>
    </head>
    <body>
        <h1>Consultar por Documento de Identidad</h1>
        <form:form
            action="${pageContext.request.contextPath}/consultarPorDni/consultar.htm" commandName="persona">
            DNI: <form:input path="dni" maxlength="8" /><input type="submit">
        </form:form>
    </body>
    Nombre: ${persona.nombre}<br />
    Apellido Paterno: ${persona.apellidoPaterno}<br />
    Apellido Materno: ${persona.apellidoMaterno}<br />
</html>
